/*
 * ShopAllGoodsContract.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.shopdetail.allgoods;

import android.os.Bundle;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.data.bean.Goods;
import com.yidiandao.business.data.recyclertype.DoubleGoods;
import com.yidiandao.business.interfaces.LoadMoreListener;

import java.util.List;

/** 店铺-全部商品-契约类 */
public class ShopAllGoodsContract {

    interface Presenter extends BasePresenter {

        void bundleSupplierId(Bundle bundle);

        void loadShopNewestGoods(boolean isRefreshing);

        /**
         * 加载价格排序商品列表
         *
         * @param isRefreshing 是否是下拉刷新
         * @param sortUp 价格是否是从低到高排序
         */
        void loadShopPriceGoods(boolean isRefreshing, boolean sortUp);

        void loadShopSalesGoods(boolean isRefreshing);

        void changeStyle(boolean isGridStyle);
    }

    interface View extends BaseView<Presenter>, LoadMoreListener {

        void showLoadingDialog();

        void hideLoadingDialog();

        void changeAdapterStyle(boolean isGridStyle);

        void setGoodsGrid(List<DoubleGoods> goodsGridList);

        void setGoodsList(List<Goods> goodsList);
    }
}
